package cn.xsly.ymcc.service;

import cn.xsly.ymcc.domain.CourseOrder;
import cn.xsly.ymcc.dto.PayOrderVo;
import com.baomidou.mybatisplus.service.IService;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author whale
 * @since 2022-11-02
 */
public interface ICourseOrderService extends IService<CourseOrder> {

    String createTokenForOrder(String ids);

    String placeOrder(PayOrderVo orderVo);

    void saveOrderAndItem(CourseOrder order);

    CourseOrder selectByOrderSn(String orderSn);

    void cancelOrder(String orderSn);

}
